Timm Bäder [Sat, 20 May 2017 12:08:42 +0000 (14:08 +0200)]
icon: Render at content position
Since we get offset automatically to the widget allocation before
->snapshot is called, we still have to offset the difference to the
position of the content allocation.
Timm Bäder [Fri, 19 May 2017 12:41:45 +0000 (14:41 +0200)]
switch: Use a gizmo as slider
The button was jut a stop-gap solution before GtkGizmo existed.
Timm Bäder [Thu, 18 May 2017 10:15:31 +0000 (12:15 +0200)]
testheightforwidth: Remove GtkBox fill/expand usage
Timm Bäder [Thu, 18 May 2017 08:09:39 +0000 (10:09 +0200)]
button: Don't care about sizing if no child is set
We don't need to care in this case since the default values should
always be assumed to be 0, and setting a baseline of 0 is just wrong
when orientation == HORIZONTAL, it should be -1 (or unset).
Timm Bäder [Wed, 17 May 2017 16:05:22 +0000 (18:05 +0200)]
Remove GtkBoxGadget
Now unused
Timm Bäder [Tue, 16 May 2017 07:45:53 +0000 (09:45 +0200)]
Remove GtkBuiltinIcon
Now unused.
Timm Bäder [Thu, 15 Jun 2017 18:54:14 +0000 (20:54 +0200)]
checkbutton: stop using gadgets
Timm Bäder [Tue, 16 May 2017 07:40:45 +0000 (09:40 +0200)]
modelbutton: Use GtkIcon as indicator
Timm Bäder [Thu, 15 Jun 2017 19:14:25 +0000 (21:14 +0200)]
icon: Add _set_css_name back
Timm Bäder [Wed, 17 May 2017 07:14:40 +0000 (09:14 +0200)]
colorswatch: Replace IconHelper with GtkImage
Timm Bäder [Mon, 15 May 2017 13:01:29 +0000 (15:01 +0200)]
widget: Consider css margins when setting clip
This is optional for positive margins as they just increase the widget
allocation. However, with negative css margins, the allocation is
smaller than the clip.
This fixes scale sliders leaving a small trail behind.
Timm Bäder [Mon, 15 May 2017 12:07:03 +0000 (14:07 +0200)]
adwaita: Fix typo
marks_lenght -> marks_length
Timm Bäder [Sun, 14 May 2017 06:58:03 +0000 (08:58 +0200)]
container: GtkActionBar is not a special container anymore
Timm Bäder [Sun, 14 May 2017 06:05:55 +0000 (08:05 +0200)]
progressbar: Apply style classes when setting direction
We might have to change .top to .left etc. when changing the direction
of the progressbar.
Timm Bäder [Sun, 14 May 2017 05:54:25 +0000 (07:54 +0200)]
css nodes: Fix expander test case
Vertical box subnode.
Timm Bäder [Sun, 14 May 2017 05:51:29 +0000 (07:51 +0200)]
css nodes: Fix entries test case
Spinbuttons now have a subnode box and the undershoot nodes belong to
the entry node.
Timm Bäder [Sat, 13 May 2017 20:05:27 +0000 (22:05 +0200)]
spinbutton: Use 0 as default for (max-)width-chars
This mimics the old spinbutton size request better.
Timm Bäder [Sat, 13 May 2017 16:56:20 +0000 (18:56 +0200)]
range: Emit value-changed when setting the adjustment
After all, the value kind of just changed.
Timm Bäder [Sat, 13 May 2017 14:13:22 +0000 (16:13 +0200)]
scale: Replace all gadgets with widgets
Timm Bäder [Sat, 13 May 2017 17:15:40 +0000 (19:15 +0200)]
scale: Remove draw_value vfunc
Unused.
Timm Bäder [Sat, 13 May 2017 12:36:29 +0000 (14:36 +0200)]
range: Return trough allocation from _get_range_rect
Timm Bäder [Sat, 13 May 2017 09:38:30 +0000 (11:38 +0200)]
notebook: Replace all gadgets with widgets
Timm Bäder [Fri, 12 May 2017 09:46:26 +0000 (11:46 +0200)]
container: Propagate child properties if parent != container
This can happen when e.g. GtkNotebook adds the child page widgets not
directly inside the notebook, but inside the inner GtkStack.
Timm Bäder [Thu, 11 May 2017 20:08:19 +0000 (22:08 +0200)]
adwaita: Fix notebook theming
the header and the stack nodes are now inside a box node.
Timm Bäder [Thu, 11 May 2017 19:52:18 +0000 (21:52 +0200)]
gizmo: Unparent all child widgets in finalize
Timm Bäder [Thu, 11 May 2017 19:49:37 +0000 (21:49 +0200)]
gizmo: Chain up in snapshot if no snapshot func given
I.e. when gizmo users just want to draw child widgets anyway and don't
do any custom drawing, they can simply pass NULL.
Timm Bäder [Thu, 11 May 2017 06:50:49 +0000 (08:50 +0200)]
notebook: Replace tab gadget with GtkGizmo
Timm Bäder [Thu, 11 May 2017 06:09:14 +0000 (08:09 +0200)]
notebook: Replace tabs gadget with GtkGizmo
Timm Bäder [Thu, 11 May 2017 05:48:46 +0000 (07:48 +0200)]
notebook: Replace arrow gadgets with GtkIcons
Timm Bäder [Thu, 11 May 2017 05:48:00 +0000 (07:48 +0200)]
icon: Add _set_image
Timm Bäder [Wed, 10 May 2017 20:13:16 +0000 (22:13 +0200)]
menu: Replace arrow gadgets with GtkIcons
Timm Bäder [Wed, 10 May 2017 19:22:42 +0000 (21:22 +0200)]
checkmenuitem: Replace indicator gadget with GtkIcon
Timm Bäder [Wed, 10 May 2017 19:22:21 +0000 (21:22 +0200)]
icon: Only draw in content allocation
Timm Bäder [Wed, 10 May 2017 18:55:38 +0000 (20:55 +0200)]
menuitem: Replace arrow gadget with GtkIcon
Timm Bäder [Wed, 10 May 2017 17:38:17 +0000 (19:38 +0200)]
scrollbar: Add accessor for wheel delta
Make the one in gtkrange.c static since it was only ever used from
GtkScrolledWindow.
Timm Bäder [Mon, 8 May 2017 15:17:27 +0000 (17:17 +0200)]
range: Draw the colorscale trough at 0,0
Timm Bäder [Mon, 8 May 2017 12:22:51 +0000 (14:22 +0200)]
range: Allocate the trough when the adjustment value changes
So it repositions the slider.
Timm Bäder [Mon, 8 May 2017 11:37:31 +0000 (13:37 +0200)]
range: Fix mouse location tracking
Timm Bäder [Mon, 8 May 2017 11:37:12 +0000 (13:37 +0200)]
range: Snapshot slider in trough's snapshot impl
Timm Bäder [Mon, 8 May 2017 08:56:05 +0000 (10:56 +0200)]
spinner: Remove gadget
Timm Bäder [Sun, 7 May 2017 19:39:37 +0000 (21:39 +0200)]
range: make the slider a gadget
Timm Bäder [Sun, 7 May 2017 19:30:02 +0000 (21:30 +0200)]
icon: Remove gadget
Timm Bäder [Sun, 7 May 2017 18:45:06 +0000 (20:45 +0200)]
range: Use gizmos for highlight and fill gadgets
Timm Bäder [Sun, 7 May 2017 16:41:24 +0000 (18:41 +0200)]
range: Use a gizmo as trough
Timm Bäder [Sun, 7 May 2017 14:44:13 +0000 (16:44 +0200)]
range: Remove contents gadget
It's not needed anymore since the range only has one child gadget: the
trough.
Timm Bäder [Sun, 7 May 2017 14:31:23 +0000 (16:31 +0200)]
range: Remove steppers
Add them back into the new scrollbars later
Timm Bäder [Sun, 7 May 2017 14:17:30 +0000 (16:17 +0200)]
scrolledwindow: Use scrollbar API on scrollbars
Timm Bäder [Sun, 7 May 2017 14:16:05 +0000 (16:16 +0200)]
range: Make GtkRange a regular class
Timm Bäder [Sun, 7 May 2017 14:15:40 +0000 (16:15 +0200)]
scrollbar: Inherit from GtkWidget
Timm Bäder [Sun, 7 May 2017 12:26:10 +0000 (14:26 +0200)]
calendar: Remove custom css background and border drawing
Timm Bäder [Sun, 7 May 2017 12:20:19 +0000 (14:20 +0200)]
eventbox: Remove snapshot implementation
Timm Bäder [Sun, 7 May 2017 12:16:59 +0000 (14:16 +0200)]
toolpalette: Port to snapshot()
Timm Bäder [Sun, 7 May 2017 12:16:30 +0000 (14:16 +0200)]
toolitemgroup: Remove custom draw code
GtkWidget does it automatically now
Timm Bäder [Sun, 7 May 2017 12:02:27 +0000 (14:02 +0200)]
searchbar: Fix property documentation comments
They are properties of GtkSearchBar, not GtkEntry.
Timm Bäder [Sun, 7 May 2017 12:00:07 +0000 (14:00 +0200)]
searchbar: Remove manual snapshot code
Timm Bäder [Sun, 7 May 2017 10:47:49 +0000 (12:47 +0200)]
menu: Stop drawing css background and border
GtkWidget does it now
Timm Bäder [Sun, 7 May 2017 10:40:54 +0000 (12:40 +0200)]
menu: Remove unnecessary queue_draw
Timm Bäder [Sun, 7 May 2017 10:36:47 +0000 (12:36 +0200)]
menu: Stop looking at padding and margin manually
Timm Bäder [Sun, 7 May 2017 08:59:47 +0000 (10:59 +0200)]
button: Remove unused flag
Timm Bäder [Sun, 7 May 2017 08:53:11 +0000 (10:53 +0200)]
checkbutton: Don't draw a focus ring
GtkWidget does it for us now.
Timm Bäder [Sun, 7 May 2017 06:46:58 +0000 (08:46 +0200)]
meson: Remove double gtkcssnode.c entry in source files
Timm Bäder [Sat, 6 May 2017 15:05:58 +0000 (17:05 +0200)]
spinbutton: Add accessors for (max-)width-chars
Timm Bäder [Sat, 6 May 2017 14:56:21 +0000 (16:56 +0200)]
spinbutton: Fix activation
Timm Bäder [Sat, 6 May 2017 14:44:57 +0000 (16:44 +0200)]
inspector: Show the GdkWindow before grabbing
Gets rid of a critical when trying to inspect widgets.
Timm Bäder [Sat, 6 May 2017 14:32:17 +0000 (16:32 +0200)]
widget: Special-case popover in snapshot
Just like we do it for GtkWindow.
Timm Bäder [Sat, 6 May 2017 14:31:46 +0000 (16:31 +0200)]
popover: Stop looking at padidng and border in measure
GtkWidget does it for us now
Timm Bäder [Sat, 6 May 2017 12:29:38 +0000 (14:29 +0200)]
boxgadget: Remove unused ComputeExpandFunc
Timm Bäder [Sat, 6 May 2017 12:17:45 +0000 (14:17 +0200)]
menuitem: Remove gadget
Now that GtkCheckMenuItem isn't using it anymore, we also don't need it.
Timm Bäder [Sat, 6 May 2017 12:15:15 +0000 (14:15 +0200)]
checkmenuitem: Stop using the parent's gadget
Timm Bäder [Sat, 6 May 2017 10:41:50 +0000 (12:41 +0200)]
expander: Inherit from GtkContainer
This fixes the expansion not working. As a GtkBin, GtkExpander can only
have one child and if that's a GtkBox (and not the one added through
gtk_expander_add), things go wrong.
Timm Bäder [Sat, 6 May 2017 10:19:19 +0000 (12:19 +0200)]
inspector: Fix list row alignment in general tab
Timm Bäder [Sat, 6 May 2017 09:44:30 +0000 (11:44 +0200)]
scrolledwindow: Remove useless function call
We never use the result.
Timm Bäder [Sat, 6 May 2017 09:41:29 +0000 (11:41 +0200)]
scrolledwindow: Fix child widget positioning
Instead of relying on get_relative_allocation, just use the
scrolledwindow's content allocation we get passed to size-allocate.
Timm Bäder [Sat, 6 May 2017 09:11:48 +0000 (11:11 +0200)]
scrolledwindow: Remove last argument from allocate_child
We never use that when calling gtk_scrolled_window_allocate_child.
Timm Bäder [Fri, 5 May 2017 18:34:17 +0000 (20:34 +0200)]
range: Remove gadget completely
Timm Bäder [Fri, 5 May 2017 17:27:50 +0000 (19:27 +0200)]
widget: Remove gtk_widget_set_allocation
Timm Bäder [Fri, 5 May 2017 17:18:53 +0000 (19:18 +0200)]
Remove calls to gtk_widget_set_allocation
gtk_widget_size_allocate_with_baselines does it automatically now.
Timm Bäder [Fri, 5 May 2017 16:56:48 +0000 (18:56 +0200)]
revealer: Stop calculating paddings ourselves
GtkWidget does it not for all widgets.
Timm Bäder [Fri, 5 May 2017 16:41:30 +0000 (18:41 +0200)]
revealer: Don't add a clip node for CROSSFADE transitions
We don't need them there as we just change the opacity of the revealer.
Timm Bäder [Fri, 5 May 2017 16:24:20 +0000 (18:24 +0200)]
cellview: Remove gadget
Timm Bäder [Fri, 5 May 2017 16:07:19 +0000 (18:07 +0200)]
scale: Fix value position
by not using the range's gadget which is not allocated to any position
anymore.
Timm Bäder [Fri, 5 May 2017 16:24:52 +0000 (18:24 +0200)]
widget: Add private get_margin_allocation
Timm Bäder [Fri, 5 May 2017 15:51:16 +0000 (17:51 +0200)]
buttonbox: Remove gadget
Timm Bäder [Fri, 5 May 2017 15:18:15 +0000 (17:18 +0200)]
stack: Remove gadget
Timm Bäder [Fri, 5 May 2017 12:06:01 +0000 (14:06 +0200)]
Slightly rework clip handling
always initialize clips to the (content) allocation, don't walk up the
widget hierarchy in gtk_widget_set_clip, implement
gtk_widget_size_allocate in GtkSeparator. This way we don't end up using
uninitialized clip values.
The entire clip handling is up for major rework since we can't and don't
want to force every single widget to call _set_clip in size-allocate
implementations.
Timm Bäder [Fri, 5 May 2017 11:27:54 +0000 (13:27 +0200)]
button: Remove gadget
Timm Bäder [Fri, 5 May 2017 11:19:05 +0000 (13:19 +0200)]
gtkscale: Properly initialize the clip
Timm Bäder [Fri, 5 May 2017 10:46:19 +0000 (12:46 +0200)]
widget: Don't set the allocation in size-allocate
If widgets chain up in their size-allocate implementation, they pass the
content allocation and not the widget allocation which will cause the
wrong allocation to be set.
Timm Bäder [Fri, 5 May 2017 10:45:54 +0000 (12:45 +0200)]
label: Don't chain up in size_allocate
It's unnecessary now.
Timm Bäder [Fri, 5 May 2017 09:51:06 +0000 (11:51 +0200)]
frame: Fix copy&paste bug in shadow-type handling
If the given shadow_type is none NONE, we have to remove the .flat style
class of course, not add it.
Timm Bäder [Fri, 5 May 2017 08:20:58 +0000 (10:20 +0200)]
paned: Remove gadget
Timm Bäder [Fri, 5 May 2017 07:39:15 +0000 (09:39 +0200)]
combobox: Remove gadget
Timm Bäder [Fri, 5 May 2017 10:54:24 +0000 (12:54 +0200)]
widget: Add private get_border_allocation
Timm Bäder [Fri, 5 May 2017 07:27:06 +0000 (09:27 +0200)]
flowbox: Remove gadgets
Timm Bäder [Thu, 4 May 2017 19:59:04 +0000 (21:59 +0200)]
viewport: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:50:51 +0000 (21:50 +0200)]
scrolledwindow: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:45:06 +0000 (21:45 +0200)]
box: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:43:03 +0000 (21:43 +0200)]
box: Remove gadget accessor
Timm Bäder [Thu, 4 May 2017 19:42:42 +0000 (21:42 +0200)]
actionbar: Remove gadget
Timm Bäder [Thu, 4 May 2017 19:42:05 +0000 (21:42 +0200)]
buttonbox: Don't use the parent gadget